package com.sugar.psych.assessment.module.business.controller.app.userpsychassessmentrecord.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author Y.sugar
 * @since 2025/7/3 14:01
 */
@Data
public class UserAnswerQuestionReqVO {

    @Schema(description = "题目ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17871")
    @NotNull(message = "题目标识不能为空")
    private Long id;

    @Schema(description = "答案", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "答案不能为空")
    private String answer;
}
